// global


html,
body,
#app {
  height: 100%;
  --gray-7: ##e6e8ed;
  --primary-color: #409eff!important;
}

body {
  margin: 0;
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root {
  --header-height: 60px;
  --side-padding: 32px;
}

// flex
.flex-1 {
  flex: 1;
}

.flex {
  display: flex;
  align-items: center;


  &.left {
    justify-content: flex-start
  }

  &.right {
    justify-content: flex-end
  }

  &.center {
    justify-content: center
  }

  &.between {
    justify-content: space-between
  }

  &.around {
    justify-content: space-around
  }

  &.items-center {
    align-items: center;
  }

  &.top {
    align-items: flex-start
  }

  &.bottom {
    align-items: flex-end
  }

  &.wrap {
    flex-wrap: wrap
  }

  &.column {
    flex-direction: column;
  }

  .flex-item {
    flex: 1;
  }

  .flex-none {
    flex: none;
  }
}

.g-container {
  padding: 12px;

  &.no-padding {
    padding: 0;
  }

  .g-content {
    padding: 20px;
    border-radius: 5px;
    background: #FFF;

    &.pt-0 {
      padding-top: 0;
    }

    &.pb-0 {
      padding-bottom: 0;
    }

    &+.g-content {
      margin-top: 10px;
    }

    &.bordered {
      border: 1px solid #EFEFF5;
    }

    &.is-hidden {
      overflow: hidden;
    }
  }

  .g-tools {
    padding: 0 20px;
  }

  .g-button {
    margin-bottom: 10px;
  }
}

.ellipsis-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-all;
}

.ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  display: -moz-box;
  white-space: pre-wrap;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.text-base {
  font-size: 14px;
}

.text-sm {
  font-size: 12px;
}

.text-lg {
  font-size: 16px;
}

.ml-5 {
  margin-left: 5px;
}

.ml-10 {
  margin-left: 10px;
}

.ml-20 {
  margin-left: 20px;
}

.mr-5 {
  margin-right: 5px;
}

.mr-10 {
  margin-right: 10px;
}

.mr-20 {
  margin-right: 20px;
}

.mt-5 {
  margin-top: 5px;

}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.ml-20 {
  margin-left: 20px;
}

.ml-8 {
  margin-left: 8px;
}

.mr-8 {
  margin-right: 8px;
}

.ml-5 {
  margin-left: 5px;
}

.mt-5 {
  margin-top: 5px;
}

.mb-5 {
  margin-bottom: 5px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-2 {
  margin-top: 2px;
}

.text-right {
  text-align: right;
}

.text-helper {
  color: #939599;
  font-size: 12px;
}

.text-label {
  color: rgba(38, 38, 41, 0.72);
  font-size: 14px;
}





.icon__hot,
.icon__new {
  line-height: 12px;
  font-size: 12px;
  text-align: center;
  padding: 2px 4px;
  color: #ffffff;
  border-radius: 4px;
  background: linear-gradient(270deg, #296BEF 0%, #7AF7FF 100%);
}

.icon__hot {
  background: linear-gradient(270deg, #FD494D 0%, #FDAA29 100%);
}

.warn-color {
  color: #FF5A00;
}

.link-color {
  color: $primaryColor;
}

// cursor
.cursor-pointer {
  cursor: pointer;
}

.font-12 {
  font-size: 12px;
}


.animate-feedback--error {
  transition: color .3s cubic-bezier(.4, 0, .2, 1);
  padding-top: 4px;
  color: #FD494D;
  font-size: 14px;
}